export const notice = {
    options: [
        { label: '全部', value: '' },
        { label: '未生成工单', value: '0' },
        { label: '已生成工单', value: '1' },
        { label: '工单已处理', value: '2' },
        { label: '已忽略', value: '3' },
        { label: '已确认', value: '4' },
    ],
    dirc: {
        null: '-',
        0: '未生成工单',
        1: '已生成工单',
        2: '工单已处理',
        3: '工单已忽略',
        4: '工单已确认',
    },
    color: ['#E91E63', '#2196F3', '#2196F3', '#999999', '#4CAF50'],
}
export const is_handled = {
    options: [
        { label: '全部  ', value: '' },
        // { label: '已处理', value: '1' },
        { label: '未处理', value: '2' },
        { label: '已确认', value: '3' },
    ],
    dirc: {
        null: '全部',
        1: '已处理',
        2: '未处理',
        3: '已确认',
    },
}
export const status = {
    options: [
        { label: '全部', value: '' },
        { label: '编辑中', value: '0' },
        { label: '已完成', value: '1' },
    ],
    dirc: {
        0: '编辑中',
        1: '已完成',
    },
}
export const state = {
    options: [
        { label: '全部', value: '' },
        { label: '已修复', value: '0' },
        { label: '自诊断异常', value: '1' },
    ],
    dirc: {
        0: '已修复',
        1: '自诊断异常',
    },
}
export const warn_level = {
    options: [
        { label: '全部', value: '0' },
        { label: '一般', value: '1' },
        { label: '中等', value: '2' },
        { label: '严重', value: '3' },
    ],
    dirc: {
        0: '全部',
        1: '一般',
        null: '一般',
        2: '中等',
        3: '严重',
    },
    color: ['#6FCFF2', '#007df2', '#db0b99', '#FE0000'],
}

export const device_status = {
    options: [
        { label: '全部', value: '' },
        { label: '停机', value: '0' },
        { label: '正常', value: '1' },
        { label: '告警', value: '2' },
        { label: '离线', value: '3' },
    ],
    color: ['#B4C6E7', '#6FAC46', '#FFFE00', 'gray'],
}

export const warn_source = {
    options: [
        { label: '全部', value: '0' },
        { label: '固定阈值', value: '1' },
        { label: '动态阈值', value: '2' },
        { label: '趋势告警', value: '3' },
        { label: 'AI模型', value: '4' },
        { label: '设备机理', value: '5' },
    ],
    dirc: {
        0: '全部',
        1: '阈值告警',
        2: '动态阈值',
        3: '趋势告警',
        4: 'AI模型',
        5: '设备机理',
    },
}
// 1：故障预警，2:维护通知，3:巡检通知
export const warn_type = {
    options: [
        { label: '全部', value: '0' },
        { label: '故障预警', value: '1' },
        { label: '维护通知', value: '2' },
        { label: '巡检通知', value: '3' },
    ],
    dirc: {
        0: '全部',
        1: '故障预警',
        2: '维护通知',
        3: '巡检通知',
    },
}
export const check_type = {
    options: [
        { name: '周期', id: 1 },
        { name: '单次', id: 2 },
        { name: '维修计划', id: 3 },
    ],
    dirc: {
        1: '周期巡检',
        2: '单次巡检',
        3: '维修计划',
    },
}
export const plan_state = {
    options: [
        { label: '全部', value: '' },
        { label: '执行中', value: 1 },
        { label: '未启用', value: 2 },
        { label: '已过期', value: 3 },
    ],
    dirc: {
        1: '执行中',
        2: '未启用',
        3: '已过期',
    },
}
export const record_state = {
    options: [
        { label: '全部', value: '' },
        { label: '已检', value: 1 },
        { label: '未检', value: 2 },
    ],
    dirc: {
        1: '已检',
        2: '未检',
    },
}
export const result = {
    options: [
        { label: '全部', value: '' },
        { label: '正常', value: 1 },
        { label: '异常', value: 2 },
    ],
    dirc: {
        1: '正常',
        2: '异常',
    },
}
